<ion-view title="充值">
  <ion-nav-buttons>
    <a class="button button-icon icon ion-ios-arrow-left" ng-click="goBackPage()"></a>
  </ion-nav-buttons>
  <ion-content class="addmoney">
    <div class="list">
      <div class="item item-input">
        <span class="input-label">账户余额</span>
        <input type="text"  class="priceinput"  placeholder="{{moneyData.money | to_pricedouble}}元" disabled>
      </div>
      <div class="item item-input">
        <span class="input-label">充值金额</span>
        <input type="number" ng-model="formData.money" placeholder="请输入充值金额">
      </div>
      <div class="item uam_mes">
        <div class="uam_me" ng-repeat="item in premoney">
          <button class="button button-light {{item.select?'active':''}}" ng-click="selectpremoney($index)">{{item.money}}元</button>
        </div>
      </div>
      <div class="item uam_payway_t">
        支付方式
      </div>
      <div class="item uam_payway item-avatar-left item-icon-right" ng-click="formData.paytype=1">
        <img src="img/other/wechat.png" alt=""><span>微信</span>
        <i ng-show="formData.paytype==1" class="icon ion-android-radio-button-on"></i>
        <i ng-show="formData.paytype!=1" class="icon ion-android-radio-button-off"></i>
      </div>
      <div class="item uam_payway item-avatar-left item-icon-right" ng-click="formData.paytype=2">
        <img src="img/other/alipay.png" alt=""><span>支付宝</span>
        <i ng-show="formData.paytype==2" class="icon ion-android-radio-button-on"></i>
        <i ng-show="formData.paytype!=2" class="icon ion-android-radio-button-off"></i>
      </div>
    </div>
    <div class="uam_sub padding">
      <button class="button button-calm button-full" ng-click="addmoney_sub()">确认充值</button>
    </div>
  </ion-content>
</ion-view>
